# coding: utf-8
# author: t_wolf
# a simple

from base import *


@frame_worker(mapping = "test1")
class Simple(Base):
    def __init__(self):
        pass

    @reg_filter(test2, "aaa")
    @reg_filter(test1, "haha")
    def get(self):
        print self.test
        return "OK" + self.request_get("test")

    def post(self):
        pass


@frame_worker(mapping ="test2")
class Simple2(Base):
    def __int__(self):
        pass

if __name__ == '__main__':
    print hasattr(Simple, "frame_worker")
    print hasattr(Simple().GET, "im_func")
    print dir(Simple().GET)
